package com.example.backend.gateway.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Slf4j
@CacheConfig(cacheNames = "CacheBackendGatewayService")
@Service
public class BackendGatewayService {

    @Cacheable(key = "#value", condition = "#result!=null")
    public String getValue(String value) {
        log.info("No Cache:{}", value);
        return value;
    }
}
